package homework41;

public class Subtract extends AbstractExpression{
    private final AbstractExpression left;

    private final AbstractExpression right;

    public Subtract(AbstractExpression left,AbstractExpression right){
        this.left = left;
        this.right = right;
    }
    @Override
    Integer interpreter(Context contex) {
        return left.interpreter(contex) - right.interpreter(contex);
    }
}
